function initialize() {
    //初始化地图
    var map = new AMap.Map('container', {
        //features:['bg','road','point'],
        layers: [
            //upper is down.
            defaultTileLayer,
            satelliteLayer,
            roadNetLayer,
            // 楼块图层
            buildingsLayer
        ],
        resizeEnable: true, //是否监控地图容器尺寸变化
        mapStyle: "amap://styles/normal",
        zoom: 10,
        viewMode: '3D',
        pitch: 60,
        //terrain: true
    });
    var scale = new AMap.Scale({
        visible: true
    });
    map.addControl(scale);
}